package file;

import java.io.File;

public class FileDemo {
    public static void main(String[] args) {
        File file = new File("./demo.txt");
        Long len = file.length();
        System.out.println(len);

        String name = file.getName();
        System.out.println(name);

        boolean cr =  file.canRead();
        System.out.println(cr);

        boolean cw = file.canWrite();
        System.out.println(cw);

        boolean ih = file.isHidden();
        System.out.println(ih);
    }
}
